<?php
namespace Admin\Controller;
use Think\Controller;
class CodeController extends Controller {
    public function index(){
    	
    	
    //图片输出路径
   
  
    	$data=M("Questionnaires")->where("id=28")->find();
    	var_dump(__ROOT__);
    	echo "<img src='http://".$_SERVER['HTTP_HOST']."/Public/Upload/".$data['pic']."' />";
    }
    
}